|
|
|
|
|
|
|
Day 16
Coping with Error Handling |
|
|
|
|
|
|
|
|
In a perfect world, the applications you design would work all the time without errors ever occurring. However, we live in an imperfect world where mistakes are made, disk drives stop working, and files are erased. These types of problems and more cause runtime errors. Runtime errors can be separated into two types: those that are found and corrected before the application is released to the users, and those that must be handled while the application is being used. The second group of runtime errors are spotlighted in this chapter. |
|
|
|
|
|
|
|
|
To deal with these errors, you need to design error-handling routines in your application code. Through the years, the process of dealing with errors has become a complex issue. Now, with the capability of creating your own ActiveX components, another layer of error handling has been added to the equation. In this chapter, you will learn what the types of errors are that can occur in your application and how you handle them. You will also see how to make use of the Visual Basic Error objects that assist you in catching any errors that might occur in the application. Anther technique that you can use is to create a log file that will provide a way for you to see exactly what happened |
|
|
|
|
|